package com.ruoyi.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.web.domain.Departments;
import com.ruoyi.web.mapper.DepartmentsMapper;
import com.ruoyi.web.service.IDepartmentsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class IDepartmentsServiceImpl extends ServiceImpl<DepartmentsMapper, Departments> implements IDepartmentsService {

    @Resource
    DepartmentsMapper departmentsMapper;

    @Override
    public List<Departments> selectDepartmentsList(Departments departments) {
        return departmentsMapper.selectDepartmentsList(departments);
    }

    @Override
    public int insertDepartments(Departments departments) {
        return departmentsMapper.insertDepartments(departments);
    }
}
